package pl.gladiator.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.test.annotation.NotTransactional;

public class User implements Serializable {
	private static final long serialVersionUID = 1L;
	private int userPk;
	private String login;
	private String password;
	private String firstname;
	private String lastname;
	private String mail;
	private String type;
	private String activate;
	private Date registerDate;

	public User(int userPk, String login, String firstname, String lastname,
			String mail) {
		super();
		this.userPk = userPk;
		this.login = login;
		this.firstname = firstname;
		this.lastname = lastname;
		this.mail = mail;
	}
	public User(){}
	
	public User(String firstname, String lastname, String mail,
			Date registerDate) {
		super();
		this.firstname = firstname;
		this.lastname = lastname;
		this.mail = mail;
		this.registerDate = registerDate;
	}
	
	public User(int userPk, String login, String firstname, String lastname,
			String type, String activate) {
		super();
		this.userPk = userPk;
		this.login = login;
		this.firstname = firstname;
		this.lastname = lastname;
		this.type = type;
		this.activate = activate;
	}
	public int getUserPk() {
		return userPk;
	}

	public void setUserPk(int userPk) {
		this.userPk = userPk;
	}
	
	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getActivate() {
		return activate;
	}

	public void setActivate(String activate) {
		this.activate = activate;
	}

	public Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	

	@Override
	public String toString() {
		return "User [userPk=" + userPk + ", login=" + login + ", password="
				+ password + ", firstname=" + firstname + ", lastname="
				+ lastname + ", mail=" + mail + ", type=" + type
				+ ", activate=" + activate + ", registerDate=" + registerDate
				+ "]";
	}

}
